#include "task_pwm.h"


TaskHandle_t xHandleTaskPWM = NULL;
PWM_STRUCT_T pwmStruct;

void vTask_PWM(void *pvParameters)
{
	PWM2_Init(pwmStruct.fre);
  while(1)
	{
		vTaskDelay(10 / portTICK_RATE_MS );
		TIM_SetCompare3(TIM2,pwmStruct.duty1); 
		TIM_SetCompare4(TIM2,pwmStruct.duty2); 
	}
}

